-- GENERATED SPELL FOR [Amani Lynx] --


function spell0_24043(pUnit, Event) --@Feral Swipe,n/a--
pUnit:FullCastSpellOnTarget(43357,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24043', 8258, 1)
end

function spell1_24043(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(42866,pUnit)
pUnit:RegisterEvent('Sorts_24043', 595, 1)
end

function Sorts_24043(pUnit, Event)
local choix_sorts_24043 = math.random(0, 1)
if choix_sorts_24043 == 0 then
pUnit:RegisterEvent('spell0_24043', 1, 1)
end
if choix_sorts_24043 == 1 then
pUnit:RegisterEvent('spell1_24043', 1, 1)
end
end

function mob24043_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24043', math.random(1500, 3000), 1)
end

function mob24043_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24043_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24043_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24043, 1, 'mob24043_Action')
RegisterUnitEvent(24043, 2, 'mob24043_Leave')
RegisterUnitEvent(24043, 3, 'mob24043_Kill')
RegisterUnitEvent(24043, 4, 'mob24043_Die')
